#include<windows.h>
#include<iostream>
int main()
 {
 HANDLE hProcessThis = :: GetCurrentProcess();
 DWORD dwPriority = :: GetPriorityClass(hProcessThis) ;
 std :: cout << "Current process priority: ";
 switch(dwPriority)
 {
 case HIGH_PRIORITY_CLASS:
 std :: cout << "High";
 break;
 case NORMAL_PRIORITY_CLASS:
 std :: cout << "Normal";
 break;
 case IDLE_PRIORITY_CLASS:
 std :: cout << "Idle";
 break;
 case REALTIME_PRIORITY_CLASS:
 std :: cout << "Realtime";
 break;
 default:
 std :: cout <<"<unknown>";
 break;
 }
 //std :: cout << std :: endl;
 system("pause");
 return 0;
 }
